package com.example.springaop.aop.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.springaop.aop.dao.UserDao;
import com.example.springaop.aop.mapper.UserMapper;
import com.example.springaop.aop.model.User;
import com.example.springaop.aop.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl extends ServiceImpl<UserMapper,User> implements IUserService {
    @Autowired
    private UserDao userDao;

    public void add(){
        userDao.add();
    }
    public void delete(){
        userDao.delete();
    }

    public String query(int id){
        return userDao.query(id);
    }
}
